
import {Component, ViewEncapsulation, ChangeDetectionStrategy, ElementRef, Renderer2, Input} from '@angular/core';
import {ToolbarBase} from "@shared/components/toolbar/toolbar-base";
/**
 * Created by dell on 2017/5/4.
 */
@Component({
  selector: 'seed-toolbar-header',
  template: `
    <div class="seed-toolbar-background" [class.seed-underline]="underline"></div>
    <div class="top " >
      <ng-content></ng-content>
    </div>
    <seed-toolbar-nav></seed-toolbar-nav>
  `,
  styleUrls: ['./toolbar.scss'],
  host: {'class': 'seed-toolbar-header'},
  changeDetection: ChangeDetectionStrategy.OnPush,
  encapsulation: ViewEncapsulation.None

})

export class ToolbarHeaderComponent extends ToolbarBase {
   @Input() underline = true;
  constructor(public elementRef: ElementRef,
              public renderer: Renderer2) {
    super(elementRef, renderer);
  }

}
